Added support for Cycling race/lang so that you can add alternative options for displaying the start and finish of races. As well as a number of other names and infoboxes of the season and championship
Listing of second national teams (d:Q99658502) (for example team "B" on Tour de France ) and U-19 teams (d:Q54555994). They are displayed similarly to U-23 teams.
Found another type of team - "regional team" (d:Q20653570). Made them added to Regional and club teams. An attempt to make the display of the region similar to the national teams (in the native language), but with the country flag - did not work
Example
Regional and club teams - équipe régionale de Bretagne de cyclisme sur route
search in module --> trying to display the region that the team represents
New templates based on "infobox" --> "infoboxseason" and "infoboxChamp". For seasons and championships, similar to normal races.
Changes
Parameter
infoboxseason
infoboxChamp
Edition (46*)
Number (P393) and what tournament (P31). Similar to infobox
Dates (7*)
Tournament dates (P580 and P582 or P585. Similar to infobox
Country (9*)
----------
Country or countries (P17) of the championship
Locations (48*) / City (67*) - differ only in the displayed headers
Region or country (P276) where the tournament was held. If the continent is represented by 1-2 countries, then I indicated the countries
The city where the tournament was held
Arena (61*) (P115)
----------
Stadium, cycle track or other structure where the championship was held
Racing (45*) / Medals (60*) - differ only in the displayed headers
It is counted through the number of races indicated (P527). Similar to the stages for multi-day events. At the moment, all specified races are considered, including canceled ones.
Organizers (50*)
Tournament or championship organizers (P664). You can shorten the spelling of their name through "Cycling race/l10n"
Team class (63*) (P2670)
What types of teams (P2670) participate in the races or what teams are eligible to get into the ranking at the end of the year. Need to decide. You can shorten the spelling of their name through "Cycling race/l10n"
----------
Winners (51*)
Tournament winners at the end of the year. Racers are displayed without specifying a team, since during the season they could play for several teams / national teams at once.
Individual (52*) - Q20882667 - individual classification (which is general)
Youth (53*) - Q20883139 - youth classification
Team (54*) - Q27104269 - team classification (which is by points)
listofwinnerssecondpart and listofwinnersChampsecondpart managed to be replaced. I suspect that you can make it possible to add after the template. Or even combine both possibilities together.
Yes, it is just the same without title. Psemdel (discuter) 11 octobre 2020 à 18:23 (CEST)
Changes
Source code in module
The changes made to the code are highlighted in bold. Now the module allows displaying the winners for any interval of years. And replace the standard hat with any one.
function p.listofwinnerscountryU23(frame) local winnersProperty = {'Q72068724','Q72068725','Q72068729'} local s = { countryflag=true, beginyear=tonumber(frame.args[2]) or 0, endyear=tonumber(frame.args[3]) or 0,
function p.listofwinnerscountryU23(frame) local winnersProperty = {'Q72068724','Q72068725','Q72068729'} local s = { countryflag=true, beginyear=tonumber(frame.args[2]) or 0, endyear=tonumber(frame.args[3]) or 0, displayteam=displayteamtemp, -- since the answer is "args[4]" shapka=tonumber(frame.args[5]) or 0,
if shapka == 1 then return table_center .. "</table>" elseif shapka == 2 then -- you need to add a title and you can add text at the beginning return table_center else return table_first .. tostring(tTitleRow) .. table_center .. "</table>"
X - the year from which to start displaying the list of winners
Y - the year to finish start displaying the list of winners
Z - if there is no or = 0 (zero) --> standard heading, if = 1 (one) --> arbitrary heading and the ability to add the necessary text on top, if = 2 (two) -> only results and the ability to add the necessary text above and below. Allows you to combine several identical tables into one.
{{#invoke:GAN-Cycling-race|listofwinnerscountryU23|Q1194340|2010|2015
| above row 3:arbitrary string between 2nd b 3th years
| below row 6:arbitrary string after 65th years}}